/*
 *  logic.h
 *  
 *  Created by James Dykstra
 *	Team 5
 *
 *  Copyright 2010 Michigan Technological University. All rights reserved.
 */
 
#ifndef LOGIC_H
#define LOGIC_H
#include "Map.h"

class Sprite;

class Logic
{
	public:
		Logic(Renderer*, Map*);
		~Logic();
		
		bool		checkCollide (Sprite *, MapObstacle *);
		bool 		checkCollide(Sprite *, Sprite *);
		bool		validMove(Sprite *, int, int);
	
	private:
		Renderer	*renderer;
	Map			*map;
		
	bool 		overlapPixelScan(SDL_Surface*, int, int, int, int, SDL_Surface*, int, int, int, int);
};

#endif
